// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2007-9-15 18:54:25


// Source File Name:   sd.java

package com.zelix;

import java.io.*;
import java.util.Vector;


//            qd, kd, td, ux, 
//            qy, jb

public class sd extends qd
{

    int j;
    int k;
    int l;
    private static String z[];

    sd(jb jb, int i, qy qy1)
        throws IOException
    {
        int i1;
        int j1;
        int l1;
        l1 = kd.e;
        super(170, jb, i);
        l = -1;
        i1 = jb.readInt();
        j = jb.readInt();
        k = jb.readInt();
        l = (k - j) + 1;
        super.i = new Vector(l + 1);
        j1 = 0;
        if(l1 == 0) goto _L2; else goto _L1
_L1:
        int k1 = jb.readInt();
        Integer integer1 = kd.c.a(super.h + k1);
        qy1.b(integer1, this);
        super.i.addElement(integer1);
        j1++;
_L2:
        if(j1 >= l)
        {
            Integer integer = kd.c.a(super.h + i1);
            qy1.b(integer, this);
            super.i.addElement(integer);
            return;
        }
        if(true) goto _L1; else goto _L3
_L3:
    }

    public sd(td td1, int i, int i1, td atd[])
    {
        int j1;
        int k1;
        k1 = kd.e;
        super(170);
        l = -1;
        j = i;
        k = i1;
        l = (k - j) + 1;
        super.i = new Vector(l + 1);
        j1 = 0;
        if(k1 == 0) goto _L2; else goto _L1
_L1:
        super.i.addElement(atd[j1]);
        j1++;
_L2:
        if(j1 >= l)
        {
            super.i.addElement(td1);
            return;
        }
        if(true) goto _L1; else goto _L3
_L3:
    }

    public void a(PrintWriter printwriter, StringBuffer stringbuffer, int i)
    {
        int i1;
        int k1;
        k1 = kd.e;
        StringBuffer stringbuffer1 = new StringBuffer();
        stringbuffer1.append(kd.h(super.d));
        printwriter.println(stringbuffer.toString() + stringbuffer1.toString());
        td td1 = (td)super.i.elementAt(super.i.size() - 1);
        printwriter.println(stringbuffer.toString() + z[2] + td1.p());
        i1 = 0;
        if(k1 == 0) goto _L2; else goto _L1
_L1:
        td td2 = (td)super.i.elementAt(i1);
        int j1 = j + i1;
        printwriter.println(stringbuffer.toString() + z[0] + j1 + z[1] + td2.p());
        i1++;
_L2:
        if(i1 >= l)
            return;
        if(true) goto _L1; else goto _L3
_L3:
    }

    public int d()
    {
        return 1 + super.g + 12 + l * 4;
    }

    public void a(DataOutputStream dataoutputstream)
        throws IOException
    {
        int i;
        int i1;
        i1 = kd.e;
        super.a(dataoutputstream);
        dataoutputstream.writeInt(j);
        dataoutputstream.writeInt(k);
        i = 0;
        if(i1 == 0) goto _L2; else goto _L1
_L1:
        td td1 = (td)super.i.elementAt(i);
        dataoutputstream.writeInt(td1.q() - super.h);
        i++;
_L2:
        if(i >= l)
            return;
        if(true) goto _L1; else goto _L3
_L3:
    }
            private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x55;
                    break;
                case 1:
                    key = 50;
                    break;
                case 2:
                    key = 23;
                    break;
                case 3:
                    key = 82;
                    break;
                default:
                    key = 108;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }
    static 
    {
        String as[];
        as = new String[3];
        as[0] = "\\Qv!\tu";
        as[1] = "o\022p=\030:\022";
        as[2] = "\\Vr4\r ^chL2]c=L";
        for (int i = 0; i < as.length; i++) {
            as[i] = z(as[i].toCharArray());
        }
        z = as;

    }
}